/*
 * UnitBuilding.cpp
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#include "UnitBuilding.h"

namespace guud {

bool UnitBuilding::isWay(uint32_t uiId) {
	if (uiId >= B_WAY_begin && uiId <= B_WAY_end) {
		return true;
	}
	return false;
}

UnitBuilding::UnitBuilding() {
	m_xLen = 0;
	m_yLen = 0;
	m_iId = 0;
	m_iType = 0;
	m_pGuudSurface = NULL;
	m_uiDrawNo = 0;
	m_bShow = true;
}
void UnitBuilding::init(uint32_t uiXLen, uint32_t uiYLen) {
	m_xLen = uiXLen;
	m_yLen = uiYLen;
}
void UnitBuilding::setSurface(GuudSurface * pGuudSurface) {
	m_pGuudSurface = pGuudSurface;
}

}
